home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / WINDOWS / PRIMER31.ARJ / MRDOS5.TXT < prev    next >
Text File  |  1992-03-12  |  8KB  |  172 lines

  1. -------------------------------[ DOS LEVEL 3 ]--------------------------------
  2.  
  3. The world of DOS is a large one.  There are many, many commands with optional
  4. switches in the realm of file management.  Fortunately, like most software,
  5. there is a flow and feel to DOS.  After you are familiar with the core
  6. commands, looking up additional ones and figuring out how to use them becomes
  7. easier.  The pattern is a DOS word (DIR, COPY, DEL, etc.) followed by the
  8. necessary, minimum information to make it go.  For example:
  9.  
  10.       A>DIR B:                  DIR only needs the drive from which the
  11.                                 directory is desired
  12.  
  13.       A>Copy C:sample.doc B:    COPY needs 3 pieces of information: (1) what
  14.                                 file on (2) which drive is to be copied to (3)
  15.                                 which drive
  16.  
  17.       A>DEL B:Test.EXE          DEL needs 2 pieces of information: (1) what
  18.                                 file on (2) which drive to delete
  19.  
  20.  
  21. SOFTWARE VERSIONS
  22. -----------------
  23. Software is labeled with a version number.  With each subsequent release of
  24. the product, the version number increases.  The reasons for these upgrades are
  25. to rid "bugs" (problems) within the software, significant product
  26. improvements, and/or to exploit new hardware advancements.  In general,
  27. anything created on an earlier version of a software will work with a later
  28. version of the same software.  This is known as upward compatibility.  The
  29. reverse is rarely true.
  30.  
  31. DOS first hit the market as version 1.0 in 1981.  It has gone thru many
  32. upgrades as new hardware components became available and new DOS features were
  33. added.  Currently DOS 4.X is available.  However, most systems are still using
  34. DOS 3.X versions.  For a single user system, any DOS version over 2.1 is
  35. probably adequate.  However, if you are using high density 3.5 inch floppy
  36. drives, you will need at least DOS 3.X.
  37.  
  38. When application software is purchased, DOS version requirements are noted on
  39. the package as well as RAM requirements.
  40.  
  41. FILE ALLOCATION TABLE
  42. ---------------------
  43. As was discussed earlier (DOS Level 1), formatting a new floppy disk prior to
  44. use electronically superimposes a grid system on the disk.  Each grid
  45. intersection (sector) is numbered.  The location of file pieces on a disk are
  46. noted in a File Allocation Table (FAT) on each disk.  When a file is copied to
  47. disk, the FAT is checked for available sector locations.
  48.  
  49. The FAT is like an index to the location of file pieces on the disk.  File
  50. portions DO NOT have to be in adjacent sectors.  As a disk repeatedly has new
  51. files copied to it and old files deleted, files become fragmented - portions
  52. of the file exist in non-adjacent sectors.  This situation is referred to
  53. as noncontiguous sectors.  Data integrity is not affected by this situation,
  54. but the speed in which data can be retrieved is.  There are many third party
  55. products to "defragment" a disk.  If the programs you will be using are disk
  56. intensive - like accounting or database management - you will notice a slowing
  57. of program execution over time as files become fragmented.                      
  58.  
  59. When a file is deleted from a disk, the contents are not wiped from the
  60. sectors; rather, the file name is removed from the FAT and the associated
  61. sectors are now simply declared available for new data.  This is important to
  62. understand because deleted files are actually still on the disk but their
  63. locations are now not considered off limits.  Again, many third party software
  64. products are available to undelete these files.
  65.  
  66. If you do delete an important file, try not to use the disk until the proper
  67. utility software is available to reverse the deletion.  With more use, you are
  68. running the risk that the next file that is copied to the disk will occupy the
  69. sectors of file you wish to undelete.  If that should happen, you will not be
  70. able to undelete the "old" file.
  71.  
  72. Some popular third party utility tools to defragment a disk and allow
  73. undeletion include PC TOOLS, NORTON UTILITIES, MACE UTILITIES, and VOPT DISK
  74. OPTIMIZER.
  75.  
  76. BATCH FILES
  77. -----------
  78. Batch files are a DOS tool that allow you to automatically execute 1 or more
  79. DOS commands sequentially.  A more detailed explanation can be found under
  80. Hard Disk Dos sections.
  81.  
  82. For example, you are tired of changing default drives, subdirectories and
  83. typing the word LOTUS each time you wish to enter into the LOTUS 123
  84. spreadsheet program.  The 3 steps required are:
  85.  
  86.                     A>C:
  87.                     C>cd\lotus
  88.                     C>lotus
  89.  
  90. These steps can be combined with a single BATCH file called LOT.BAT.
  91.  
  92. To build:
  93.  
  94.                   C>copy con:lot.bat  --- Begin creating a file called lot.bat
  95.                     C:
  96.                     cd\lotus
  97.                     lotus
  98.                     <F6>              --- End building and save to disk by
  99.                                           pressing the <F6> function key
  100.  
  101. Now, each time LOT is entered at the DOS prompt, the commands within the
  102. LOT.BAT file are automatically executed sequentially.
  103.  
  104.                 C>lot
  105.                                                                                 
  106. REDIRECTION
  107. -----------
  108. Redirection refers to having input or output come or go to devices other than
  109. the standards of Keyboard (Input) and Monitor (output).  In DOS we expect to
  110. enter commands from the Keyboard and have the results displayed on the
  111. Monitor.
  112.  
  113.           A>DIR           --- Gives a directory of the A drive disk on the
  114.                               monitor
  115.  
  116.           A>DIR >PRN      --- PRN  means to send the results of this command
  117.                               to the printer
  118.  
  119.           A>DIR >LIST.TXT --- Now the output of this command is put into a
  120.                               file on the A disk called LIST.TXT  (Any
  121.                               filename could have been used.)
  122.  
  123. The greater than sign ( > )  used above was to REDIRECT the output to a
  124. Printer and a Disk File rather than the default output device: the monitor.
  125. This is useful for getting a hard copy printout of a particular disk's
  126. contents.
  127.  
  128. PIPING - FILTERS
  129. ----------------
  130. Piping is a way of telling DOS to transfer the output from one command to be
  131. the input for another command.  Piping is a form of redirection except DOS
  132. will create a temporary file on a disk to accomplish the task.
  133.  
  134. Piping usually involves the use of special commands, termed Filters, to accept
  135. data, do something with it, and then pass it to the next step.  There are 3
  136. standard filters used by DOS in piping:
  137.  
  138.     FIND - used to search a file directory for a specified string of text
  139.     MORE - used to display one 1 screen of output at a time
  140.     SORT - used to sort disk filenames
  141.  
  142. The symbol used by DOS to indicate a Piping operation is the vertical bar (|).
  143.  
  144. Examples:
  145.  
  146.          A>DIR |sort     --- Will display on the monitor the list of files
  147.                              on the A disk, BUT in filename alphabetic order.
  148.  
  149.          A>DIR |sort/+10 --- Will display on the monitor the list of files
  150.                              on the A disk, BUT by alphabetic order of the
  151.                              filename extensions.  Extensions are 10
  152.                              characters from the left on the screen during a
  153.                              DIR.
  154.  
  155.         A>DIR |sort >prn  -- Same as the 1st example except the results of
  156.                              this command will be printed out.
  157.  
  158.         A>DIR |sort >SAM.D - Same as the 1st example except the results of
  159.                              this command will be saved on the disk in a file
  160.                              called  SAM.D                                      
  161.  
  162.         A>DIR |sort |more -- Will display in sorted order one screen at a time
  163.  
  164.         A>DIR |find "05-14-89"  -- Will display a list of files that were last
  165.                                    changed on May 14, 1989
  166.  
  167.         A>DIR |find "SALES"     -- Will display a list of files that have the
  168.                                    word SALES in the file name
  169.  
  170.  
  171. *****   END OF FILE:  Press <ESC> to return to Main Menu   *****
  172.